package com.ruoyi.system.api.constants;

/**
 * @author wangenhao
 * @className BuyBackOrderConstants
 * @description
 * @date 2024-10-27 下午5:40
 **/
public class BuyBackOrderConstants {

    /**
     * 已编制
     */
    public static final int ORDER_STATUS_PREPARED = 1;

    /**
     * 已提交
     */
    public static final int ORDER_STATUS_SUBMITTED = 2;

    /**
     * 已审批
     */
    public static final int ORDER_STATUS_APPROVED = 3;

    /**
     * 执行完
     */
    public static final int ORDER_STATUS_EXECUTED = 4;

    /**
     * 无状态
     */
    public static final int STOCK_STATUS_NULL = 0;

    /**
     * 待出入库
     */
    public static final int STOCK_STATUS_WAIT = 1;

    /**
     * 部分出入库
     */
    public static final int STOCK_STATUS_MIDDLE = 2;

    /**
     * 已出入库
     **/
    public static final int STOCK_STATUS_END = 3;
    /**
     * 无状态
     */
    public static final int PAY_STATUS_NULL = 0;
    /**
     * 待收款
     */
    public static final int PAY_STATUS_WAIT = 1;

    /**
     * 部分收款
     */
    public static final int PAY_STATUS_MIDDLE = 2;
    /**
     * 已收款
     */
    public static final int PAY_STATUS_END = 3;
    /**
     * approvalResult
     * 无审批结果
     */
    public static final int APPROVAL_NO_RESULT = 0;
    /**
     * 未审批
     */
    public static final int APPROVAL_NOT_APPROVED = 1;
    /**
     * 已通过审批
     */
    public static final int APPROVAL_APPROVED = 2;
    /**
     * 已驳回
     */
    public static final int APPROVAL_REJECTED = 3;


    private BuyBackOrderConstants() {
    }

    /**
     * 获取状态的字符串表示
     *
     * @param status 状态码
     * @return 状态字符串
     */
    public static String getStatusString(int status) {
        switch (status) {
            case ORDER_STATUS_PREPARED:
                return "编制中";
            case ORDER_STATUS_SUBMITTED:
                return "已提交";
            case ORDER_STATUS_APPROVED:
                return "已审批";
            case ORDER_STATUS_EXECUTED:
                return "执行完";
            default:
                return "未知状态";
        }
    }
}